import org.junit.jupiter.api.Test;

import java.sql.Timestamp;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * ClassName : testsoutdata
 * Package: PACKAGE_NAME
 * Description:
 *
 * @Author 李轩辕
 * @Create 6/4/2024 下午2:17
 * @Version 17.0
 */
public class testsoutdata {
    @Test
    public void test(){
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        Timestamp timestamp = new Timestamp(System.currentTimeMillis());
        String now = sdf.format(timestamp);
        System.out.println(now);
    }
}
